package com.springcloud.study.oauth2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @Description: TODO
 * @Author dongguo
 * @Date 2020/4/23 17:55
 * @Version V1.0
 **/
@RestController
public class UserController {

    @GetMapping("/user")
    public Principal user(Principal user){
        return user;
    }

}
